.class public Lcom/estrongs/android/ui/dialog/f0;
.super Ljava/lang/Object;
.source "NewFTPServerDialog.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    .line 7
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 8
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/f0;->b:Landroid/content/Context;

    .line 9
    iput-boolean p4, p0, Lcom/estrongs/android/ui/dialog/f0;->c:Z

    .line 10
    new-instance p4, Lcom/estrongs/android/ui/view/c;

    check-cast p1, Landroid/app/Activity;

    invoke-direct {p4, p1, p2, p3}, Lcom/estrongs/android/ui/view/c;-><init>(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    invoke-direct {p0, p4}, Lcom/estrongs/android/ui/dialog/f0;->a(Lcom/estrongs/android/ui/view/c;)V

    .line 12
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->f0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 13
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/f0;->a(Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Z)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/f0;->b:Landroid/content/Context;

    .line 3
    iput-boolean p3, p0, Lcom/estrongs/android/ui/dialog/f0;->c:Z

    .line 4
    new-instance p3, Lcom/estrongs/android/ui/view/c;

    check-cast p1, Landroid/app/Activity;

    invoke-direct {p3, p1, p2}, Lcom/estrongs/android/ui/view/c;-><init>(Landroid/app/Activity;Ljava/lang/String;)V

    .line 5
    invoke-direct {p0, p3}, Lcom/estrongs/android/ui/dialog/f0;->a(Lcom/estrongs/android/ui/view/c;)V

    .line 6
    invoke-direct {p0, p2}, Lcom/estrongs/android/ui/dialog/f0;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/f0;)Lcom/estrongs/android/ui/dialog/q;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/f0;->a:Lcom/estrongs/android/ui/dialog/q;

    return-object p0
.end method

.method private a(Lcom/estrongs/android/ui/view/c;)V
    .locals 2

    .line 8
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/f0;->b(Lcom/estrongs/android/ui/view/c;)V

    .line 9
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/f0;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 10
    invoke-virtual {p1}, Lcom/estrongs/android/view/h0;->j()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Lcom/estrongs/android/ui/dialog/f0$c;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/android/ui/dialog/f0$c;-><init>(Lcom/estrongs/android/ui/dialog/f0;Lcom/estrongs/android/ui/view/c;)V

    const p1, 0x7f11029e

    .line 11
    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Lcom/estrongs/android/ui/dialog/f0$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/f0$b;-><init>(Lcom/estrongs/android/ui/dialog/f0;)V

    const v1, 0x7f110299

    .line 12
    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 13
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/f0;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 5

    const-string v0, "ftpes"

    .line 2
    invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, "ftps"

    .line 3
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/f0;->b:Landroid/content/Context;

    const v1, 0x7f1106ff

    const/4 v2, 0x1

    new-array v3, v2, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object p1, v3, v4

    invoke-virtual {v0, v1, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 5
    iget-boolean v1, p0, Lcom/estrongs/android/ui/dialog/f0;->c:Z

    if-nez v1, :cond_1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/f0;->b:Landroid/content/Context;

    const v1, 0x7f1103e9

    new-array v2, v2, [Ljava/lang/Object;

    aput-object p1, v2, v4

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 7
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/f0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private b(Lcom/estrongs/android/ui/view/c;)V
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/dialog/f0$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/f0$a;-><init>(Lcom/estrongs/android/ui/dialog/f0;)V

    invoke-virtual {p1, v0}, Lcom/estrongs/android/view/h0;->a(Lcom/estrongs/android/view/h0$a;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/f0;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
